import os

# 配置secret_key，，随机输出
SECRET_KEY = os.urandom(24)
JSON_AS_ASCII = False

# 数据库配置
HOSTNAME = "127.0.0.1"
PORT = "3306"
DATABASE = "lianjia"
USERNAME = "root"
PASSWORD = input("请输入数据库密码：")
DB_URI = "mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8".format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
# 构造sql连接
SQLALCHEMY_DATABASE_URI = DB_URI
# 去除警告,自动跟踪数据库
SQLALCHEMY_TRACK_MODIFICATIONS = True
DEBUG = True



